<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%--
    Шаблон POST-формы
    Атрибуты:
    title - заголовок
    description - описание
    data - сама форма
  Created by Petro 21.01.13 1:54
--%>
<fieldset>
    <h3><tiles:insertAttribute name="title"/></h3>
    <c:set var="description"><tiles:insertAttribute name="description"/></c:set>
    <c:if test="${not empty description}">
        <div>${description}</div>
    </c:if>
    <form:errors path="*" cssClass="ERROR" element="div" htmlEscape="false"/>
    <br>
    <div><tiles:insertAttribute name="data"/></div>
</fieldset>